package org.example.springboot.convert;

import org.example.springboot.entity.IrrigationUnit;
import org.example.springboot.vo.IrrigationUnitVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 数据转换层
 *
 * @author Fz
 * @since 1.0.0 2024-07-31
 */
@Mapper
public interface IrrigationUnitConvert {

    IrrigationUnitConvert INSTANCE = Mappers.getMapper(IrrigationUnitConvert.class);

    IrrigationUnit convert(IrrigationUnitVO vo);

    IrrigationUnitVO convert(IrrigationUnit entity);

    List<IrrigationUnitVO> convertList(List<IrrigationUnit> list);

}